import request from '@/utils/request'

export function login(data) {
  return request({
    url: '​​/api​/user​/loginin',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    url: '/api/user/user-info',
    method: 'get'
  })
}

export function getuserbypage(params) {
  return request({
    url: '/api/user/user-by-page',
    method: 'get',
    params: params
  })
}
export function getuserpermissionsids(params) {
  return request({
    url: '/api/user/user-permissions-ids',
    method: 'get',
    params: params
  })
}
export function createuser(data) {
  return request({
    url: '​/api​/user​/user',
    method: 'post',
    data
  })
}

export function deleteuser(data) {
  return request({
    url: '​/api​/user​/user',
    method: 'delete',
    params: data
  })
}

export function updateuser(data) {
  return request({
    url: '​/api​/user​/user',
    method: 'put',
    data
  })
}

